//----------------------------------Include-------------------------------------
#include "mcu.h"
//------------------------------------------------------------------------------

//-----------------------------------Macro--------------------------------------
//------------------------------------------------------------------------------

//--------------------------------Static Var------------------------------------
static RCC_ClocksType   nt_clk;
//------------------------------------------------------------------------------

//--------------------------------Static Func-----------------------------------
//------------------------------------------------------------------------------

//--------------------------------Public Func-----------------------------------
void mcu_sys_clock(void)
{
  SystemCoreClockUpdate();
  RCC_GetClocksFreqValue(&nt_clk);
  
#if 0
//clock
  
//pin
  
//clk_out

#endif
}
//------------------------------------------------------------------------------
uint32_t  mcu_get_clk_sys(void)     { return nt_clk.SysclkFreq;  }
uint32_t  mcu_get_clk_hclk(void)    { return nt_clk.HclkFreq;    }
uint32_t  mcu_get_clk_pclk1(void)   { return nt_clk.Pclk1Freq;   }
uint32_t  mcu_get_clk_pclk2(void)   { return nt_clk.Pclk2Freq;   }
//------------------------------------EOF---------------------------------------





